package com.beixiaohai.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.beixiaohai.service.HiService;

@RestController
public class HiController {
	
	@Autowired
	private HiService hiService;
	
	@GetMapping("hi")
	public String hi(@RequestParam(defaultValue="forezp",required=false)String name) {
		return hiService.sayHi(name);
	}

}
